/**
 * Universita' degli Studi di Palermo, 2010-11, License GNU GPL 3 (http://www.gnu.org/licenses/gpl.html)
 */
package org.unipa.botplatform.model.simple.interaction;

import java.util.Calendar;
import java.util.Vector;

import org.unipa.botplatform.model.Interaction;
import org.unipa.botplatform.model.simple.interaction.Dialogue;

/**
 * @author Giuseppe Miceli
 *
 */
public class Dialogue implements Interaction{

	private Vector<Crosstalk> dialogue = new Vector<Crosstalk>();

	public void addInteraction(Object interaction) {
		Crosstalk crosstalk = (Crosstalk) interaction;
		dialogue.add(crosstalk);
	}

	public Crosstalk getLastInteraction() {
		return (Crosstalk)dialogue.lastElement();
	}

	public Dialogue interactionSince(Calendar since) {
		// TODO Auto-generated method stub
		return this;
	}

	/**
	 * @return the dialogue
	 */
	public Vector<Object> getInteractions() {
		return new Vector<Object>(dialogue);
	}
}